import 'package:flutter_billi/http/core/HiNet.dart';
import 'package:flutter_billi/http/request/base_request.dart';
import 'package:flutter_billi/http/request/cancel_request.dart';
import 'package:flutter_billi/http/request/favorite_request.dart';

class FavoriteDao {
  static favorite(String vid, bool favorite) async {
    BaseRequest request = !favorite ? FavoriteRequest() : CancelRequest();
    request.pathParams = vid;
    var result = await HiNet.getInstance().fire(request);
    print(result);
    return result;
  }
}
